<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'maintainreportdetail.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />

		<script language="javascript" type="text/javascript">
	<%
	if(("提交修改").equals(request.getParameter("submit")))
	{
		out.println("alert(\"修改成功\")");
	}
	%>
	</script>

	</head>
	<body>
		<div id="page_container">
			<h2>
			维修记录详情
			</h2>
			<div id="maintainreportdetail">
				<s:form name="maintainreportupdate" theme="simple"
					action="maintainreport/maintainreportupdate.action" method="post">
					<table class="table_common">
						<s:hidden name="mr.maintainreportid" />
						<tr>
							<td class="td_left">
								报修人：
							</td>
							<td class="td_right">
								<s:textfield label="报修人：" name="mr.maintainreporter" readonly="true"/>
							</td>
						</tr>
						<tr>
							<td class="td_left">
								报修人联系方式：
							</td>
							<td class="td_right">
								<s:textfield label="报修人联系方式：" name="mr.maintainreporterphone" readonly="true" />
							</td>
						</tr>
						<tr>
							<td class="td_left">
								报修时间：
							</td>
							<td class="td_right">
								<s:date name="mr.maintainreporttime" format="yyyy-MM-dd hh:mm"/>
							</td>
						</tr>
						<tr>
							<td class="td_left">
								报修类型：
							</td>
							<td class="td_right">
								<s:textfield label="报修类别：" name="mr.maintainreporttype.maintainreporttypename" readonly="true" />
							</td>
						</tr>
						<tr>
							<td class="td_left">
								报修地点：
							</td>
							<td class="td_right">
								<s:textfield label="报修地点：" name="mr.maintainreportplace"  readonly="true"/>
							</td>
						</tr>
						<tr>
							<td class="td_left">
								维修预约时间：								
							</td>
							<td>
							<s:date name="mr.maintainreportavailtime" format="yyyy-MM-dd hh:mm"/>
							</td>
						</tr>
						<tr>
							<td class="td_left">
								报修详情：
							</td>
							<td class="td_right">
								<s:textarea label="维修内容：" name="mr.maintainreportcontent"  readonly="true" cols="30" rows="3"/>
							</td>
						</tr>
							<!--  
							<select name="mr.maintainreportstatus">
									<s:if test="mr.maintainreportstatus=='提交'">
										<option value="提交" selected>
											提交
										</option>
										<option value="受理">
											受理
										</option>
										<option value="完成">
											完成
										</option>
										<option value="拒绝">
											拒绝
										</option>
									</s:if>
									<s:if test="mr.maintainreportstatus=='受理'">
										<option value="提交">
											提交
										</option>
										<option value="受理" selected>
											受理
										</option>
										<option value="完成">
											完成
										</option>
										<option value="拒绝">
											拒绝
										</option>
									</s:if>
									<s:if test="mr.maintainreportstatus=='完成'">
										<option value="提交">
											提交
										</option>
										<option value="受理">
											受理
										</option>
										<option value="完成" selected>
											完成
										</option>
										<option value="拒绝">
											拒绝
										</option>
									</s:if>
									<s:if test="mr.maintainreportstatus=='拒绝'">
										<option value="提交">
											提交
										</option>
										<option value="受理">
											受理
										</option>
										<option value="完成">
											完成
										</option>
										<option value="拒绝" selected>
											拒绝
										</option>
									</s:if>
								</select>
						<tr class="row_even">
							<td colspan="2">
								<input type="submit" name="submit" value="提交修改" />
							</td>
						</tr>
						-->
					</table>					
						
				</s:form>
			</div>
			<a class="common_button" href="setfinish.action?maintainreportid=${mr.maintainreportid}">完成</a>
		</div>
	</body>
</html>
